<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>DLC Search Engine: com.utn.searchengine.DocumentManager Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">DLC Search Engine
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacecom.html">com</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1utn.html">utn</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1utn_1_1searchengine.html">searchengine</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html">DocumentManager</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">com.utn.searchengine.DocumentManager Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="com::utn::searchengine::DocumentManager" -->
<p><a href="classcom_1_1utn_1_1searchengine_1_1_document_manager-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a09fe544e27b965fcf796fe23c62bac63">getDocumentModule</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a482dbc878f08c89dc82d8b17d4ba689f">setDocumentModule</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a8295975e2a38a2efbd526921af105b79">addDocument</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a416e11c09839b8f261bdb3e6b1036c89">documentsSize</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#aa15e5b18fe4c94870484d03fbcabe247">DocumentManager</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a98b4f2a2eca071ee2be5ef81c2d76098">toString</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class is an auxiliar to manage all the basic info about the documents. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>altamirano,peker,liberal </dd></dl>

<p>Definition at line <a class="el" href="_document_manager_8java_source.html#l00013">13</a> of file <a class="el" href="_document_manager_8java_source.html">DocumentManager.java</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa15e5b18fe4c94870484d03fbcabe247"></a><!-- doxytag: member="com::utn::searchengine::DocumentManager::DocumentManager" ref="aa15e5b18fe4c94870484d03fbcabe247" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#aa15e5b18fe4c94870484d03fbcabe247">com.utn.searchengine.DocumentManager.DocumentManager</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Recupera de la base de datos la cantidad de documentos </p>

<p>Definition at line <a class="el" href="_document_manager_8java_source.html#l00053">53</a> of file <a class="el" href="_document_manager_8java_source.html">DocumentManager.java</a>.</p>

<p>References <a class="el" href="_d_a_o_factory_8java_source.html#l00040">dataaccess.factories.DAOFactory.getActiveDAOFactory()</a>, <a class="el" href="classdataaccess_1_1factories_1_1_d_a_o_factory.html#abac444c4c5d3e3efed06d705dcaf5071">dataaccess.factories.DAOFactory.getDocumentDAO()</a>, and <a class="el" href="interfacedataaccess_1_1dao_1_1_document_d_a_o.html#affbba9edb72e5b871bbd08c9cae25655">dataaccess.dao.DocumentDAO.obtenerCantidadDocument()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a8295975e2a38a2efbd526921af105b79"></a><!-- doxytag: member="com::utn::searchengine::DocumentManager::addDocument" ref="a8295975e2a38a2efbd526921af105b79" args="(Document document)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a8295975e2a38a2efbd526921af105b79">com.utn.searchengine.DocumentManager.addDocument</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Agrega un documento a la base de datos </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">document</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_document_manager_8java_source.html#l00036">36</a> of file <a class="el" href="_document_manager_8java_source.html">DocumentManager.java</a>.</p>

<p>References <a class="el" href="_d_a_o_factory_8java_source.html#l00040">dataaccess.factories.DAOFactory.getActiveDAOFactory()</a>, <a class="el" href="classdataaccess_1_1factories_1_1_d_a_o_factory.html#abac444c4c5d3e3efed06d705dcaf5071">dataaccess.factories.DAOFactory.getDocumentDAO()</a>, and <a class="el" href="interfacedataaccess_1_1dao_1_1_document_d_a_o.html#a94556d61af10d151eec677720d5799c3">dataaccess.dao.DocumentDAO.grabarWebSite()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00041">com.utn.searchengine.LocalWordCountManager.addDocument()</a>.</p>

</div>
</div>
<a class="anchor" id="a416e11c09839b8f261bdb3e6b1036c89"></a><!-- doxytag: member="com::utn::searchengine::DocumentManager::documentsSize" ref="a416e11c09839b8f261bdb3e6b1036c89" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a416e11c09839b8f261bdb3e6b1036c89">com.utn.searchengine.DocumentManager.documentsSize</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>devuelve la cantidad de documento de la base de datos </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>el size que es la cantidad de documentos </dd></dl>

<p>Definition at line <a class="el" href="_document_manager_8java_source.html#l00046">46</a> of file <a class="el" href="_document_manager_8java_source.html">DocumentManager.java</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00052">com.utn.searchengine.LocalWordCountManager.getTotalNumberOfDocuments()</a>.</p>

</div>
</div>
<a class="anchor" id="a09fe544e27b965fcf796fe23c62bac63"></a><!-- doxytag: member="com::utn::searchengine::DocumentManager::getDocumentModule" ref="a09fe544e27b965fcf796fe23c62bac63" args="(Document document)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a09fe544e27b965fcf796fe23c62bac63">com.utn.searchengine.DocumentManager.getDocumentModule</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Recupera el modulo de un documento de la base de datos </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">document</td><td>A document </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the module of the documen. If the document is not present on the documentManager or its module hasn't been set, it returns -1 </dd></dl>

<p>Definition at line <a class="el" href="_document_manager_8java_source.html#l00023">23</a> of file <a class="el" href="_document_manager_8java_source.html">DocumentManager.java</a>.</p>

<p>References <a class="el" href="_d_a_o_factory_8java_source.html#l00040">dataaccess.factories.DAOFactory.getActiveDAOFactory()</a>, <a class="el" href="classdataaccess_1_1factories_1_1_d_a_o_factory.html#abac444c4c5d3e3efed06d705dcaf5071">dataaccess.factories.DAOFactory.getDocumentDAO()</a>, <a class="el" href="_document_8java_source.html#l00045">com.utn.searchengine.Document.getModule()</a>, and <a class="el" href="interfacedataaccess_1_1dao_1_1_document_d_a_o.html#a846058ac889a57d4d26eeb9f45f9daac">dataaccess.dao.DocumentDAO.obtenerDocument()</a>.</p>

</div>
</div>
<a class="anchor" id="a482dbc878f08c89dc82d8b17d4ba689f"></a><!-- doxytag: member="com::utn::searchengine::DocumentManager::setDocumentModule" ref="a482dbc878f08c89dc82d8b17d4ba689f" args="(Document document)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a482dbc878f08c89dc82d8b17d4ba689f">com.utn.searchengine.DocumentManager.setDocumentModule</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_document_manager_8java_source.html#l00028">28</a> of file <a class="el" href="_document_manager_8java_source.html">DocumentManager.java</a>.</p>

<p>References <a class="el" href="_d_a_o_factory_8java_source.html#l00040">dataaccess.factories.DAOFactory.getActiveDAOFactory()</a>, <a class="el" href="classdataaccess_1_1factories_1_1_d_a_o_factory.html#abac444c4c5d3e3efed06d705dcaf5071">dataaccess.factories.DAOFactory.getDocumentDAO()</a>, and <a class="el" href="interfacedataaccess_1_1dao_1_1_document_d_a_o.html#a94556d61af10d151eec677720d5799c3">dataaccess.dao.DocumentDAO.grabarWebSite()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00131">com.utn.searchengine.LocalWordCountManager.estimateWeight()</a>.</p>

</div>
</div>
<a class="anchor" id="a98b4f2a2eca071ee2be5ef81c2d76098"></a><!-- doxytag: member="com::utn::searchengine::DocumentManager::toString" ref="a98b4f2a2eca071ee2be5ef81c2d76098" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document_manager.html#a98b4f2a2eca071ee2be5ef81c2d76098">com.utn.searchengine.DocumentManager.toString</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_document_manager_8java_source.html#l00058">58</a> of file <a class="el" href="_document_manager_8java_source.html">DocumentManager.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/main/java/com/utn/searchengine/<a class="el" href="_document_manager_8java_source.html">DocumentManager.java</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 16 2012 02:45:40 for DLC Search Engine by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
